#include<stdio.h>
#include"lcd.h"
#include"bmp.h"
#include"touch.h"
#include <stdlib.h>
#include "lbiao.h"
int main()
{
    lcd * s = chushihua();
    lbiao * root = NULL;
    root = bmp_display(root ,"./1.bmp");
    root = bmp_display(root ,"./2.bmp");
    root = bmp_display(root ,"./3.bmp");
    //printf("root->w=%d\n",root->width);
    hua_tu(root,s,0,0);
    while(1)
    {
        int fx = pudaun_fx();
        if(fx == 1 || fx == 3)
        {   root = root->one;
            printf("shuangyig\n");
            hua_tu(root,s,0,0);
        }
        else
        {
            root = root->next;
            printf("xiayig\n"); 
            hua_tu(root,s,0,0);
        }
    }

    close_lcd(s);
   
    return 0;
}